package Auxiliary;

import java.util.Vector;
import javax.swing.JOptionPane;
import DataView.SplitInfo;


public class Sequence_SplitInfo
{
	private Vector<SplitInfo> v;
	
	public Sequence_SplitInfo()
	{
		this.v = new Vector<SplitInfo>();
	}
	
	public void add(SplitInfo s)
	{
		v.add(s);
	}
	
	public void delete(SplitInfo s)
	{
		if(v.contains(s))
			v.remove(s);
		
		else
		{
			JOptionPane.showMessageDialog(null,
					"Elemento non presente", "Error",
					JOptionPane.WARNING_MESSAGE);
			
		}
	}
	
	public SplitInfo get(int i)
	{
		return v.elementAt(i);
		
	}
	
	public Vector<SplitInfo> getAll()
	{
		return v;
	}
	
	public int size()
	{
		return v.size();
		
	}
	
	
}